using System;
using System.Xml.Serialization;

namespace com.exceptionalsoftware.spacetime.KML
{
	[Serializable()]
	[XmlType(TypeName = "IconType")]
	public class Icon : Link
	{
		private int xField, yField, wField, hField;
		
		[XmlElement(ElementName = "x", DataType = "int")]
		public int X
		{
            get { return this.xField; }
            set { this.xField = value; }
		}

        [XmlElement(ElementName = "y", DataType = "int")]
        public int Y
        {
            get { return this.yField; }
            set { this.yField = value; }
        }

        [XmlElement(ElementName = "w", DataType = "int")]
        public int W
        {
            get { return this.wField; }
            set { this.wField = value; }
        }

        [XmlElement(ElementName = "h", DataType = "int")]
        public int H
        {
            get { return this.hField; }
            set { this.hField = value; }
        }
    }
}